import {configureStore} from "@reduxjs/toolkit";
import {usersSlice} from "./modules/user";


export const rootReducer = {
    users: usersSlice.reducer
};

export const store = configureStore({
    reducer: rootReducer,
});


export type AppDispatch = typeof store.dispatch;

export type RootState = ReturnType<typeof store.getState>;